﻿@model Yunwei.Web.Areas.Admin.Models.LoginViewModel
@{
    Layout = "~/Areas/Admin/Views/Shared/_LayoutLoginPage.cshtml";
    ViewBag.Title = "Login";
}

<div class="row">
    <div class="col-md-4 col-md-offset-4">
        <div class="login-panel panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">请输入登陆信息</h3>
            </div>
            <div class="panel-body">
                @using (Html.BeginForm("Login", "User", new { Area = "Admin", returnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @role = "form" }))
                {
                    @Html.AntiForgeryToken()
                    <fieldset>
                        <div class="form-group">
                            <input class="form-control" placeholder="UserName/E-mail/Phone" name="username" type="text" autofocus />
                            @Html.ValidationMessageFor(model => model.UserName, "", new { @class = "text-danger" })
                        </div>
                        <div class="form-group">
                            <input class="form-control" placeholder="Password" name="password" type="password" value="" />
                            @Html.ValidationMessageFor(model => model.Password, "", new { @class = "text-danger" })
                        </div>
                        <div class="checkbox">
                            <label>
                                <input name="remember" type="checkbox" value="" />记住密码
                            </label>
                        </div>
                        <!-- Change this to a button or input when using this as a form -->
                        <input type="submit" class="btn btn-lg btn-success btn-block" value="提交"/>
                        <a href="~/Admin/User/Register" class="btn btn-lg btn-danger btn-block">注册</a>
                    </fieldset>
                }
            </div>
        </div>
    </div>
</div>
